﻿//
// Created by LiuYou on 2021/8/12.
//

#include <string.h>
#include <stdio.h>
#include "Book.h"


struct Book getBook(int id, char* name, char* author, double price) {
    struct Book book = {
            .id=id,
            .price=price
    };
    strcpy( book.name, name );
    strcpy( book.author, author );
    strcpy( book.mainContent, say );
    return book;
}

void seeBook(struct Book* book) {
    printf( "Book{"
            "id: %d, "
            "name: %s, "
            "author: %s, "
            "price: %f, "
            "mainContent: %s}", book->id, book->name, book->author, book->price, book->mainContent );
}